import request from '@/utils/request'

// 查询就业信息列表
export function listEmploymentInfo(query,uid) {
  return request({
    url: '/system/EmploymentInfo/list',
    method: 'get',
    params: {
      ...query,
      uid:uid
    }
  })
}

// 查询就业信息详细
export function getEmploymentInfo(id) {
  return request({
    url: '/system/EmploymentInfo/' + id,
    method: 'get'
  })
}

// 新增就业信息
export function addEmploymentInfo(data) {
  return request({
    url: '/system/EmploymentInfo',
    method: 'post',
    data: data
  })
}

// 修改就业信息
export function updateEmploymentInfo(data) {
  return request({
    url: '/system/EmploymentInfo',
    method: 'put',
    data: data
  })
}

// 删除就业信息
export function delEmploymentInfo(id) {
  return request({
    url: '/system/EmploymentInfo/' + id,
    method: 'delete'
  })
}

// 统计就业状态
export function countByEmploymentStatus() {
  return request({
    url: '/system/EmploymentInfo/countEmploymentStatus',
    method: 'get'
  })
  
}

// 统计就业意向
export function countByEmploymentIntent() {
  return request({
    url: '/system/EmploymentInfo/countEmploymentIntent',
    method: 'get'
  })
  
}

// 统计就业省份
export function countByEmploymentProvince() {
  return request({
    url: '/system/EmploymentInfo/countEmploymentProvince',
    method: 'get'
  })
  
}

// 就业信息
export function getEmploymentStatsAndIntent() {
  return request({
    url: '/system/EmploymentInfo/getEmploymentStats',
    method: 'get'
  })
  
}

export function getProvinceStats(){
  return request({
    url: '/system/EmploymentInfo/countEmploymentProvinceByGrade',
    method: 'get'
  })
}
